package com.match.competition_sub.service;

import com.match.competition_sub.entity.Student;
import com.baomidou.mybatisplus.extension.service.IService;
import com.match.competition_sub.entity.vo.StuQuery;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author AdiosF
 * @since 2021-09-21
 */
public interface StudentService extends IService<Student> {
    //根据学生学号更新学生状态
    Boolean updateStuState(String stuNum, int state);

    //分页条件查询学生信息
    Map<String,Object> findStuByQuery(long current, long limit, StuQuery stuQuery);

    //通过EasyExcel录入学生信息
    void addStuByExcel(MultipartFile file, StudentService studentService);

    //更新报名状态
    void updateSignUpState(String groutId, int replace, int state);
}
